﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="_14073716_CalculatorForSum._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome!
    </h2>
    <p>
        &nbsp;This is to calculate the sum of two numbers.</p>
    <p>
        &nbsp;</p>
    <p>
        The first number:
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TextBox1" ErrorMessage="Please input an Integer" 
            ForeColor="#CC0000"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="TextBox1" 
            ErrorMessage="Should be Integer, and range is -99999999 - 99999999" ForeColor="#CC0000" 
            MaximumValue="99999999" MinimumValue="-99999999" Type="Integer"></asp:RangeValidator>
    &nbsp;</p>
    <p>
        The second number:
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="TextBox2" ErrorMessage="Please input an Integer" 
            ForeColor="#CC0000"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:RangeValidator ID="RangeValidator2" runat="server" 
            ControlToValidate="TextBox2" 
            ErrorMessage="Should be Integer, and range is -99999999 - 99999999" ForeColor="#CC0000" 
            MaximumValue="99999999" MinimumValue="-99999999" Type="Integer"></asp:RangeValidator>
    &nbsp;</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Sum" />
    </p>
    <p>
        <asp:Label ID="Label1" runat="server"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
